package ru.osu.acm.testing.beans;

/**
 * User: Aleksey
 * Date: 18.02.2009
 * Time: 13:21:03
 */
public class PersonBean {
    private int id;
    private String username;
    private String password;
    private String group;
    private String name;
    private String surname;
    private boolean loggedIn;
    private boolean isadmin;

    public PersonBean(int id, String username, String password, String group, String name, String surname, boolean loggedIn) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.group = group;
        this.name = name;
        this.surname = surname;
        this.loggedIn = loggedIn;
    }

    public PersonBean(int id, String username, String password, String group, String name, String surname, boolean loggedIn, boolean isadmin) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.group = group;
        this.name = name;
        this.surname = surname;
        this.loggedIn = loggedIn;
        this.isadmin = isadmin;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public boolean isLoggedIn() {
        return loggedIn;
    }

    public void setLoggedIn(boolean loggedIn) {
        this.loggedIn = loggedIn;
    }

    public boolean getIsadmin() {
        return isadmin;
    }
}
